import useRequest from '@/utils/request'

const request = useRequest({})
// 查询在线用户列表
export function list(query: any) {
  return request.get('/system/online/list', {
    params: query
  })
}

// 强退用户
export function forceLogout(tokenId: string | number) {
  return request.delete('/system/online/' + tokenId)
}